<include file="Public:head"/>

<div class="reg">  
        

 <div class="app-cam">
    <div class="cam" id="notice"><img src="" class="" alt="" /></div>

        <form class="demoform" id="" action="{:U('Home/Login/register')}" method="post" >
         
            
             <input type="text" name="username"  placeholder="{$Think.lang.name}" />
             <div>&nbsp <br>  </div>
            <input type="password" name="password"  placeholder="{$Think.lang.password}" />
            <div>&nbsp <br>  </div>
            <input type="password" name="repassword"  placeholder="{$Think.lang.passwordt}" />
           <!--  
                      <input type="yzm" name="yzm" class="" placeholder="验证码" >
           <img align="absmiddle" src="{:U('verify')}" class="yzm1"  id="getcode" title="点击刷新" onclick="this.src='{:U('verify')}?'+Math.random()" >
            -->
          <input name="pid" type="hidden" placeholder="推广码"
           value="<?php echo($yqm['pid']);?>" />
         

 
          
          
        
            
          <!--同意协议-->
          <div class="controls clearfix tongyi">
                <div class=" checkAgreement">
                    <input type="checkbox" type="checkbox" name="agree" value="1">
                </div>
                <div class=" check_content">{$Think.lang.agree}
                    <a class="individualAgreement" onclick="" otype="button" otitle="太阳网服务协议(个人会员版)">
                        《{$Think.lang.official}》
                    </a>
                </div>



                <span class="errorPanel"><b class="icon minusCircleIcon"> </b><span class="errorContent" id="registeragreeTip"></span></span>
            </div>
            <!-- -->


           <!-- 按钮最好用button不用submit-->
          <div class="submit"><input type="submit" id="btn" class="" value="{$Think.lang.reg}" ></div>
          <div class="clear"></div>
          <div class="buttons">
            <ul>
              <li><a href="#" class="hvr-sweep-to-right">微博 登录</a></li>
              <li><a href="#" class="hvr-sweep-to-left">QQ 登录</a></li>
              <div class="clear"></div>
            </ul>
          </div>
          <div class="new">
            <p><a href="#">忘记密码 ?</a></p>
            <p class="sign">已经注册 ?<a href="{:U('Login/login')}"> <font color=#f9671e> ->{$Think.lang.login}</font> </a></p>
            <div class="clear"></div>
          </div>
        </form>

  </div>

<!-- -->
<!--ajax实时验证用户名-->



<!---->
</div>  
<include file="Public:foot"/>

<!--js文件 -->
<script type="text/javascript"> 
$(function(){
  $('#btn').click(function(){
    var action = $('#register_form').attr('action');
    var parms = $('#register_form').serialize();
    $,post(action,parms,function(data){
      //alert(data['user']);

      //清空数据
      $('#nameTip').html('');
      $('#pwdTip').html('');
      $('#pwd2Tip').html('');

      if(type(data.length)=='undefined'{
        alert('no');
        $('#nameTip').html(data['user']);
      }
      if(data['pwd']){
         $('#pwdTip').html(data['pwd']);
      }
       if(data['pwd2']){
         $('#pwd2Tip').html(data['pwd2']);
      }
      }else{
        alert('ok');
      }

    },'json' );
  })

 
</script>
